package string02;

/**
 * String类的面试题
 */
public class Demo03 {
    public static void main(String[] args) {
        String str1 = "abc";
        String str2 = "abc";
        String str3 = "def";

        System.out.println(str1==str2);//true
        System.out.println(str1.equals(str2));//true

        System.out.println(str2==str3);//false
        System.out.println(str2.equals(str3));//false
    }
}
